import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-05-18
 * Time: 16:52
 */
public class demo8 {
    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("./output.txt",true)){
            outputStream.write(97);
            outputStream.write(98);
            outputStream.write(97);

        }  catch (IOException e) {
            //此处需要处理两个日常，由于此处并没有针对两个异常提供不同的处理，就直接合并了
            throw new RuntimeException(e);
        }
    }
}
